package o;

import android.database.MatrixCursor;
import com.huawei.appmarket.service.appdetail.bean.report.GeneralResponse.GradeData;
import com.huawei.appmarket.service.appdetail.bean.report.GeneralResponse.GradeInfo;
import com.huawei.appmarket.service.appdetail.bean.report.GeneralResponse.LevelBean;
import java.util.List;

public class dzy {
    private static GradeInfo ˋ;

    public static void ॱ(GradeInfo gradeInfo) {
        ˋ = gradeInfo;
    }

    public static GradeInfo ˊ() {
        return ˋ;
    }

    public static String ॱ(int i) {
        GradeInfo gradeInfo = ˋ;
        if (gradeInfo != null) {
            GradeData ˏ = gradeInfo.ˏ();
            if (ˏ != null) {
                List<LevelBean> ॱ = ˏ.ॱ();
                if (!CollectCheck.isEmpty((List) ॱ)) {
                    for (LevelBean levelBean : ॱ) {
                        if (levelBean.ˏ() == i) {
                            return levelBean.ˎ();
                        }
                    }
                }
            }
        }
        return null;
    }

    public static MatrixCursor ॱ() {
        String ॱ = euf.ˎ().ॱ("settings_grade_cache", "");
        if (dof.ॱ(ॱ)) {
            return null;
        }
        MatrixCursor matrixCursor = new MatrixCursor(new String[]{"settings_grade_cache"}, 1);
        matrixCursor.newRow().add(ॱ);
        return matrixCursor;
    }
}
